import { RouteRecordRaw } from 'vue-router';

export default <RouteRecordRaw[]>[
    {
        path: '/system',
        component: () => import('@/layouts/AdminLayout.vue'),
        redirect: 'NotFound',
        children: [
            {
                path: 'menu',
                name: 'MenuTable',
                component: () => import('@/views/system/Menus.vue'),
                meta: {
                    title: '菜单管理'
                }
            },
            {
                path: 'role',
                name: 'RoleTable',
                component: () => import(/* webpackChunkName: "router" */'@/views/system/Role.vue'),
                meta: {
                    title: '角色管理'
                }
            },
            {
                path: 'role/:code',
                name: 'RolePermission',
                component: () => import(/* webpackChunkName: "router" */'@/views/system/Permission.vue'),
                meta: {
                    title: '分配权限'
                }
            },
            {
                path: 'user',
                name: 'UserTable',
                component: () => import(/* webpackChunkName: "router" */'@/views/system/User.vue'),
                meta: {
                    title: '用户管理'
                }
            },
            {
                path: 'department',
                name: 'Department',
                component: () => import(/* webpackChunkName: "router" */'@/views/system/Department.vue'),
                meta: {
                    title: '部门管理'
                }
            },
        ]
    }
]
